package com.ea.eadp.nexus.test.workflow.newconsole.parentemail;

import org.openqa.selenium.WebDriver;

import com.ea.eadp.nexus.test.pageDefinition.newconsole.VerifyParentEmailPage;
import com.ea.eadp.nexus.test.workflow.WorkflowElementArgument;

public class FailParentEmailChallengeWorkflowElement
extends ParentEmailChallengeWorkflowElement {
    
    public FailParentEmailChallengeWorkflowElement(
        WebDriver driver, WorkflowElementArgument argument
    ) {
        super(driver, argument);
    }
    
    @Override
    public void doAction() {
        page.sendControllerKey('A');
    }
    
    @Override
    public void doVerification() {
        "Email Not Verified".equals(
            page.getElementString(VerifyParentEmailPage.txt_verifyPopupTitle)
        );
    }
    
    @Override
    public void moveNext() {
        page.sendControllerKey('A');
    }
    
}
